home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Do you have ever pass structures?
- Date: Thu, 22 Feb 96 00:26:02 GMT
- Organization: none
- Message-ID: <824948762snz@genesis.demon.co.uk>
- References: <4ge8mi$qjm@srvr1.engin.umich.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4ge8mi$qjm@srvr1.engin.umich.edu>
- hasdi@news-server.engin.umich.edu "HASDI RODZMANN HASHIM" writes:
-
- >So is there any REAL advantage is passing an entire structure?
-
- In most cases, no. It would be useful if you needed a local copy of the
- structure to work on (i.e. to modify without afftecting the copy in the
- caller). This might be particularly useful for small structures e.g. to
- hold coordinates or complex numbers.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-